<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\validate;

/**
 * 会员验证器
 */
class Activity extends ValidateBase
{
    
    // 验证规则
    protected $rule = [
        'activity_type'         => 'require',
        'room_id'               => 'require',
        'plan_time'             => 'require',
        // 'execute_time'          => 'require', 
        // 'professor_code'        => 'require', 
        'plan_content'          => 'require', 
    ];

    // 验证提示
    protected $message = [
        'activity_type.require'    => '小屋类型不能为空',
        'room_id.require'          => '小屋编号不能为空',
        'plan_time.require'        => '请输入活动计划时间',
        // 'execute.require'          => '请输入活动执行时间',
        'plan_content'             => '请输入计划内容', 
    ];

    // 应用场景
    protected $scene = [
        'edit'  =>  ['activity_type','plan_time','plan_content'],
        'add'   =>  ['activity_type','plan_time','plan_content'], 
    ];
}
